package demo.EntityVsBusiness;

public class StudentService {
    private Student student;

    public StudentService( Student s ) {
        this.student = s;
    }

    // 打印总成绩
    public void printStudentName(){
        System.out.println(student.getName()+"的年龄是："+student.getAge());
    }
}
